package com.glsc.ngateway.common.api.flowable.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.glsc.ngateway.common.api.flowable.resp.ResponseSituationDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzp
 * @date 2022/12/8
 * 处理flowable流程返回通用Dto
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class FlowDoTaskRespDto {
    @ApiModelProperty(value = "任务ID")
    private String taskId;

    @ApiModelProperty(value = "任务处理节点标识，必填，如applyTask，即流程定义文件中的：userTask id=applyTask")
    private String taskDefinitionKey;

    @ApiModelProperty(value = "流程类型标识")
    private String processDefineKey;

    @ApiModelProperty(value = "当前任务节点状态信息")
    private ResponseSituationDto currentTaskInfo = new ResponseSituationDto();

    @ApiModelProperty(value = "流程实例ID")
    private String processId;

    @ApiModelProperty(value = "处理评论")
    private String comment;

    @ApiModelProperty(value = "处理内容")
    private String content;

    @ApiModelProperty(value = "系统编号")
    private String sysid;
}
